package com.biglead.gateway;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.servlet.server.ServletWebServerFactory;
import org.springframework.context.annotation.Bean;

@SpringBootApplication()
@MapperScan(basePackages = "com.biglead.gateway.mapper")
public class GatewayApplication {

	public static void main(String[] args) {
//		SpringApplication.run(GatewayApplication.class, args);
		SpringApplication application = new SpringApplication(GatewayApplication.class);
		// 该设置方式
		application.setWebApplicationType(WebApplicationType.REACTIVE);
		application.run(args);
	}

}
